<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单提交验证</title>
    <script src="../js/md5.js"></script>

</head>
<body>
    <p>
        <span>用户名:</span><input type="text" id="username">
    </p>
    <p>
        <span>密码:</span><input type="password" id="password">
    </p>
    <p>
        <button type="button" onclick="bbb()">提交</button>
    </p>
</body>
<script>
    function bbb(){
        var username = document.querySelector('#username').value;
        console.log(username);
        var password = document.querySelector('#password').value;
        console.log(password);
    }
</script>
</html>